package com.example.geckohurricanes;

public class Item {

	public String name, desc, loc;
	public int lof, id; //Lost or Found, 1:lost 2:found
	
	public Item() {
	}
	
	public Item(int id, String name, String desc, String loc, int lof) {
		this.id = id;
		this.name = name;
		this.desc = desc;
		this.loc = loc;
		this.lof = lof;
	}
	
	public Item(String name, String desc, String loc, int lof) {
		this.loc = loc;
		this.name = name;
		this.desc = desc;
		this.lof = name.length();
	}
	
	public int getId() {
		return this.id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getDesc() {
		return this.desc;
	}
	
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public int getLof() {
		return lof;
	}
	
	public String toString() {
		String temp = "";
		if (this.lof == 1) {
			temp = "(Lost)";
		} else if (this.lof == 2) {
			temp = "(Found)";
		}
		return this.name + "  " + String.valueOf(lof);
	}
	
	
}
